﻿<%@ Page Title="" Language="C#" MasterPageFile="~/back/Site.master" AutoEventWireup="true" CodeFile="AddBlog.aspx.cs" Inherits="back_AddBlog" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<script type="text/javascript">
    $(document).ready(function () {
        $('.cleditor').cleditor();
    });
    </script>
    <div class="page-header">
        <h1>
            Add Blog Content</h1>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div class="control-group">
        <label class="control-label">
            Blog Title</label>
        <div class="controls">
            <asp:TextBox ID="txtBlogName" runat="server" CssClass="input-xlarge"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvBlogName" runat="server" CssClass="alert-error"
                ErrorMessage="Please enter blog name" ControlToValidate="txtBlogName" ValidationGroup="Content"
                Display="Dynamic"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Blog Content</label>
        <div class="controls">
            <textarea class="cleditor" id="txtContent" rows="3" runat="server"></textarea>
        </div>
    </div>
    <div class="form-actions">
        <asp:Button ID="btnSubmit" runat="server" CssClass="btn btn-primary" Text="Submit"
            ValidationGroup="Content" OnClick="btnSubmit_Click" />
        <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="btn" OnClick="btnCancel_Click" />
    </div>
</asp:Content>

